package com.yunchang.springboot.mapper.mwsfinance;

import com.yunchang.springboot.models.mwsfinance.FPaymentRefund;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FPaymentRefundMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FPaymentRefund record);

    int insertSelective(FPaymentRefund record);

    FPaymentRefund selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FPaymentRefund record);

    int updateByPrimaryKey(FPaymentRefund record);

    /**
     * 获取下推状态及WillReturnQuantity大于0的数据
     * @param pushStatus
     * @return
     */
    List<FPaymentRefund> selectByPushStatusAndWillReturnQuantity(@Param("pushStatus") Integer pushStatus);

    /**
     * 根据fPaymentRefundList对象集合对下推状态进行更新
     * @param fPaymentRefundList
     * @return
     */
    int updateFPaymentRefundList(@Param("fPaymentRefundList") List<FPaymentRefund> fPaymentRefundList);
}